class Restaurant:
    def __init__(self, restaurant_name, cuisine_type):
        self.restaurant_name = restaurant_name
        self.cuisine_type = cuisine_type
        self.number_served = 0

    def describe_restaurant(self):
        print(f"{self.restaurant_name} restaurant is {self.cuisine_type}")

    def open_restaurant(self):
        print(f"{self.restaurant_name} restaurant is open")

    def served_restaurant(self):
        print(f"{self.restaurant_name} served {self.number_served} customers")


class IceCreamStand(Restaurant):
    def __init__(self, restaurant_name, cuisine_type, flavours):  # 新增 flavours 参数
        super().__init__(restaurant_name, cuisine_type)
        self.flavours = flavours  # 初始化 flavours

    def display_flavours(self):  # 展示口味的方法
        print("Available flavours:")
        for flavour in self.flavours:
            print(f"- {flavour}")


# 创建实例，并传入 flavours 列表
ice_cream_stand = IceCreamStand(
    'Cool Treats',
    'ice cream',
    ["vanilla", "chocolate", "strawberry"]  # 传入 flavours
)

# 调用方法
ice_cream_stand.display_flavours()  # 正确调用
ice_cream_stand.describe_restaurant()